package com.redis.springbootredis;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.transaction.annotation.Transactional;

//声明式缓存注解
@EnableCaching
//自动扫描com.org.main.dao下面的类，创建Dao对象
@MapperScan("com.redis.springbootredis.dao")
//解决Session共享的问题
@EnableRedisHttpSession
//事务
@Transactional
@SpringBootApplication
public class SpringbootRedisApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootRedisApplication.class, args);
    }

}
